package com.hilon.segment.jpa.service.impl;

import com.hilon.segment.jpa.entity.BomMain;
import com.hilon.segment.jpa.repository.BomMainRepository;
import com.hilon.segment.jpa.service.BomMainService;
import com.hilon.base.service.EntityHandle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Transactional(rollbackFor = Exception.class)
@Service
public class BomMainServiceImpl extends EntityHandle<BomMain> implements BomMainService {
    private final BomMainRepository bomMainRepository;

    public BomMainServiceImpl(BomMainRepository bomMainRepository) {
        this.bomMainRepository = bomMainRepository;
        super.buildCurRepository(bomMainRepository);
    }
}
